//global variable to store links;
var links = new Array();

function onDisplayResult(){
   if(global_parameters['app'])showLink(global_parameters['app']);
   else showLink('');
}


function showLink(name) {
	var roott=document.getElementById('linksTable');
	var elements=roott.getElementsByTagName('tr');
	for (var i = 0; i < elements.length; i++) {
 		if (name=='' || elements[i].id=='header' || elements[i].id.indexOf(name)>=0 ){
 			elements[i].style.display = "";
 		} else elements[i].style.display = "none";
	}
	var e=document.getElementById('link_show_all');
	if(e){
		if(name==''){
			e.style.display='none';
		}else{
			e.style.display='inline';
		}
	}
}
